module mymodule

struct Users {
	age int
}

fn (u Users) can_register() bool {
	return u.age > 16
}

pub fn methodsdemo() {
	user := Users{
		age: 10
	}
	println(user.can_register()) // ==> "false"

	user2 := Users{
		age: 20
	}
	println(user2.can_register()) // ==> "true"
}
